SOURCE  =   src

all: buildall

buildall:
	@echo " "
	@echo "****************************************"
	@echo "*******     Building gtLog      ********"
	@echo "****************************************"
	@echo " "
	@echo "******  Building static libraries ******"
	@echo " "
	(cd ./$(SOURCE)/; $(MAKE) static)
	@echo " "
	@echo "****** Building Shared  libraries ******"
	@echo " "
	(cd ./$(SOURCE)/; $(MAKE) shared)
	@echo " "
	@echo "*****************************************"
	@echo "*******     build successful     ********"
	@echo "*****************************************"
	@echo " "

clean:
	@echo " "
	@echo "*****************************************"
	@echo "*******     Invoking Cleanup     ********"
	@echo "*****************************************"
	@echo " "
	(cd $(SOURCE); $(MAKE) clean)
	@echo " "
	@echo "*****************************************"
	@echo "*******       Cleanup done       ********"
	@echo "*****************************************"
	@echo " "

distclean:
	@echo " "
	@echo "*****************************************"
	@echo "*******     Invoking Cleanup     ********"
	@echo "*****************************************"
	@echo " "
	(cd $(SOURCE); $(MAKE) distclean)
	@echo " "
	@echo "*****************************************"
	@echo "*******       Cleanup done       ********"
	@echo "*****************************************"
	@echo " "

cleanapp:
	@echo " "
	@echo "*****************************************"
	@echo "******* Application Only Cleanup ********"
	@echo "*****************************************"
	@echo " "
	(cd $(SOURCE); $(MAKE) cleanapp)
	@echo " "
	@echo "*****************************************"
	@echo "******* Application Cleanup done ********"
	@echo "*****************************************"
	@echo " "